package com.amos.core;

import java.util.List;

/**
 * Copyright © 2018 嘉源锐信. All rights reserved.
 *
 * @Project: mu-exam
 * @ClassName: BaseService
 * @Package: com.amos.core
 * @author: zhuqb
 * @Description:
 * @date: 2020/3/4 0004 下午 17:17
 * @Version: V1.0
 */
public interface BaseService<T extends BaseDTO> {
    /**
     * 条件查询
     *
     * @param dto
     * @return
     */
    List<T> select(T dto);

    /**
     * 加载
     *
     * @param id
     * @return
     */
    T load(String id);

    /**
     * 标记删除指定记录
     *
     * @param id
     * @return
     */
    int logicDeleted(String id);

    /**
     * 保存
     *
     * @param dto
     * @return
     */
    T save(T dto);
}
